package com.molichuxing.services.infrastructure.service;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.request.create.ContractImageCreateDto;
import com.molichuxing.services.infrastructure.dto.request.create.InvoiceInfoCreateDto;
import com.molichuxing.services.infrastructure.dto.response.ContractImageDto;

import java.util.List;

/**
 * <p>
 * 合同表 服务类
 * </p>
 *
 * @author zhaopenghui
 * @since 2019-10-21
 */
public interface ContractImageService extends RootService {

    /**
     * 合同附件添加
     *
     * @param list
     * @return
     * @throws Exception
     */
    public Boolean createContractImageBatch(List<ContractImageCreateDto> list) throws Exception;

    /**
     * 获取合同附件list
     *
     * @param contractId
     * @return
     */
    public List<ContractImageDto> getContractImageList(Integer contractId);

    /**
     * 附件名称是否存在
     *
     * @param name
     * @return
     */
    public Boolean getImageNameExist(String name);
}
